package org.openems.entity;

import java.util.ArrayList;
import java.util.List;

import org.openems.entity.AbstractEntity;
import org.openems.entity.Entity;
import org.openems.entity.InvalidValueException;
import org.openems.entity.Key;

public class ListEntity extends AbstractEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3089200353772961286L;

	public List<Key> getKeys() {
		return keys;
	}

	public void setKeys(List<Key> keys) {
		this.keys = keys;
	}

	private List<Key> keys = new ArrayList<Key>();
	
	public ListEntity(Key key, String name, boolean persisted) {
		super(key, name, persisted);
		// TODO Auto-generated constructor stub
	}

	@Override
	public Entity getClone() {
		return clone();
	}

	@Override
	public String getValueText() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setValueText(String text) throws InvalidValueException {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	protected ListEntity clone()  {
		try {
			return (ListEntity)super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return null;
	}
}
